/* eslint valid-jsdoc: "off" */

'use strict';

/**
 * @param {Egg.EggAppInfo} appInfo app info
 */
module.exports = appInfo => {
  /**
   * built-in config
   * @type {Egg.EggAppConfig}
   **/
  const config = exports = {};


  // add your middleware config here
  config.middleware = [ 'trace'];

  // add your user config here
  const userConfig = {
    // myAppName: 'egg',
    alinode : {
      server: 'wss://agentserver.node.aliyun.com:8080',
      appid: '86888',
      secret: 'b238248145baff4234a9c0edc4c87cad6c92f821'
    },
    cluster : {
      listen: {
        port: 7001,
        hostname: '0.0.0.0',
      }
    }
  };

  return {
    ...config,
    ...userConfig,
  };
};
